﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<BGCMS.Models.MaturityLog>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Þroskaskrá
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Þroskaskrá</h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>
        
        <fieldset>
            <legend>Þroski barns</legend>

            <div class="editor-field">
                <%: Html.HiddenFor(model => model.ChildID) %>
                <%: Html.ValidationMessageFor(model => model.ChildID) %>
            </div>
            
            <div class="editor-label">
                <label for="Talks">Byrjaði að tala</label>
            </div>
            <div class="editor-field">
                <input type="text" id="Talks" name="Talks" class="datepicker" readonly="readonly"
                    value="<%: Model.Talks.ToString("dd/MM/yyyy") %>" />
            </div>

            <div class="editor-label">
                <%: Html.LabelFor(model => model.Talks) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Talks, String.Format("{0:g}", Model.Talks)) %>
                <%: Html.ValidationMessageFor(model => model.Talks) %>
            </div>
            
            <div class="editor-label">
                <label for = "Walks">Byrjaði að labba</label>
                <%: Html.LabelFor(model => model.Walks) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Walks, String.Format("{0:g}", Model.Walks)) %>
                <%: Html.ValidationMessageFor(model => model.Walks) %>
            </div>
            
            <div class="editor-label">
                <label for = "WalksWith">Byrjaði að labba með</label>
                <%: Html.LabelFor(model => model.WalksWith) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.WalksWith, String.Format("{0:g}", Model.WalksWith)) %>
                <%: Html.ValidationMessageFor(model => model.WalksWith) %>
            </div>
            
            <div class="editor-label">
                <label for = "StandsUp">Stendur upp</label>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.StandsUp, String.Format("{0:g}", Model.StandsUp)) %>
                <%: Html.ValidationMessageFor(model => model.StandsUp) %>
            </div>
            
            <div class="editor-label">
                <label for = "PicksUpThings">Tekur upp hluti</label>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.PicksUpThings, String.Format("{0:g}", Model.PicksUpThings)) %>
                <%: Html.ValidationMessageFor(model => model.PicksUpThings) %>
            </div>
            
            <div class="editor-label">
                <label for = "SitsAlone">Situr einn</label>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.SitsAlone, String.Format("{0:g}", Model.SitsAlone)) %>
                <%: Html.ValidationMessageFor(model => model.SitsAlone) %>
            </div>
            
            <div class="editor-label">
                <label for = "MovesBetweenHands">Færir hluti milli handa</label>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.MovesBetweenHands, String.Format("{0:g}", Model.MovesBetweenHands)) %>
                <%: Html.ValidationMessageFor(model => model.MovesBetweenHands) %>
            </div>
            
            <div class="editor-label">
                <label for = "TurnsOver">Veltir sér</label>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.TurnsOver, String.Format("{0:g}", Model.TurnsOver)) %>
                <%: Html.ValidationMessageFor(model => model.TurnsOver) %>
            </div>
            
            <div class="editor-label">
                <label for = "Grips">Heldur á hlutum</label>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Grips, String.Format("{0:g}", Model.Grips)) %>
                <%: Html.ValidationMessageFor(model => model.Grips) %>
            </div>
            
            <div class="editor-label">
                <label for = "HoldsHeead">Getur haldið höfði</label>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.HoldsHead, String.Format("{0:g}", Model.HoldsHead)) %>
                <%: Html.ValidationMessageFor(model => model.HoldsHead) %>
            </div>
            
            <div class="editor-label">
                <label for = "Babbles">Umlar</label>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Babbles, String.Format("{0:g}", Model.Babbles)) %>
                <%: Html.ValidationMessageFor(model => model.Babbles) %>
            </div>
            
            <div class="editor-label">
                <label for = "Notices">Tekur eftir</label>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Notices, String.Format("{0:g}", Model.Notices)) %>
                <%: Html.ValidationMessageFor(model => model.Notices) %>
            </div>
            
            <div class="editor-label">
                <label for = "Smiles">Brosir</label>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Smiles, String.Format("{0:g}", Model.Smiles)) %>
                <%: Html.ValidationMessageFor(model => model.Smiles) %>
            </div>
            
            <p>
                <input type="submit" value="Vista breytingar" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

